using System;
using System.Collections.Generic;
using System.Text;
using Universe.Remoting.Extensions;

namespace Universe.Remoting.Tests
{
    static class MyClientInit
    {
        static Locator Locator = new Locator("127.0.0.1", MyServerInit.Port);
        static Locator Fake = new Locator("127.0.0.1", MyServerInit.Port-1);
        static Locator Invalid = new Locator("127.0.0.1", 80);

        public static void Run()
        {
            ClientRepository.Instance.Locators.Add(Invalid);
            ClientRepository.Instance.Locators.Add(Fake);
            ClientRepository.Instance.Locators.Add(Locator);
            
            TransparentDeliveryConfiguration.OnClient +=
                delegate(DeliveryDictionary data)
                {
                    data.Set<int>("My Int", 123456);
                };

        }



    }
}
